Use an API client or the dashboard to promote or hide items or categories without a particular query.
clearance:true
, whenever there is an empty query and the context is set to landing
.
You can use other consequences, such as promoting or hiding items, and boosting or burying categories, with the same condition.
To trigger this rule, you must send landing
as a ruleContexts
on the frontend.
As soon as user begins typing, the rule is turned off.
If you want a rule that’s always active for a particular context regardless of the query string, create a context-only rule.
For more information, see Using rules to customize search results by platform.
attributesForFaceting
.saveRule
method on a Rule object with an empty search as the condition.